<?php

	/***************************\
	*							*
	*	Ranking UI functions	*
	*							*
	\***************************/
	
	require_once("configure.php");

	require_once("./frontend/templates/".TEMPLATE_NAME."/index.php");

	function ShowRanking()
	{
		if(isset($_GET["prize"]))
		{
			$prize = htmlspecialchars($_GET["prize"]);
		}
		else
		{
			$prize = null;
		}
		
		$rankingData = GetRankingData($prize);
		$history = GetHistoryData();
		DrawAll($rankingData, $history);
		
		// Enables mock up
		// echo file_get_contents("frontend/templates/default/mockup.html");
	}

?>